home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
326-350
/
disk_346
/
timetest
/
timetest.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-06
|
486b
|
31 lines
/*
sample proggi to test out the
lettuce time functions
by Olli
*/
#include <time.h>
#include <stdio.h>
int main(char **argv,int argc)
{
long t;
struct tm *ts;
time(&t);
ts=gmtime(&t);
printf("tm_sec=%d tm_min=%d tm_hour=%d\n\
tm_mday=%d tm_mon=%d tm_year=%d\n\
tm_wday=%d tm_yday=%d tm_isdst=%d\n",
ts->tm_sec,ts->tm_min,ts->tm_hour,
ts->tm_mday,ts->tm_mon,ts->tm_year,
ts->tm_wday,ts->tm_yday,ts->tm_isdst);
return(0);
}